<?php

require_once '../espace_administration/Model/AbstractModel.php';

class User extends AbstractModel
{
	// Préparation des requêtes
	$truncate = $_db->prepare('TRUNCATE '.CFG_BDD_TBL_DEMANDEPRESTA);
	$insert = $_db->prepare('INSERT INTO '.CFG_BDD_TBL_DEMANDEPRESTA.' (name, password) VALUES (?, ?)');
	$select = $_db->prepare('SELECT id, name, password FROM user');
	$select->setFetchMode(PDO::FETCH_ASSOC); // Facultatif
	
    public function __construct()
    {
        parent::__construct(CFG_BDD_TBL_DEMANDEPRESTA);
    }
}
